<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>樾瑜伽管理系统-登录</title> $!{include("import_js_css.html")}
<link rel="stylesheet" type="text/css" href="${resourcePath}/css/login.css" />
<script type="text/javascript">
	$(function() {
		var errorMsg = "${loginErrorMsg}";
		if (errorMsg) {
			$.messager.alert("错误", errorMsg);
		}

		//清空表单
		$("#clearBtn").click(function() {
			$("#loginForm").form("clear");
		});

		//登录
		$("#loginBtn").click(function() {
			console.log("dddd");
			$("#loginForm").submit();
		});
	});
</script>
</head>
<body>
	<div id="login-window" class="easyui-dialog" title="樾瑜伽管理系统-用户登录"
		data-options="iconCls:'icon-wanyoga-login',collapsible:false,minimizable:false,maximizable:false,onBeforeClose:function(){return false},buttons:'#loginWindowButtonBar'"
		style="width: 450px; height: 268px;">
		<div style="margin: 6px;">
			<div style="float: left; width: 160px; height: 180px; border: 1px solid #ddd;">
				<img alt="logo" src="${padResourcePath}/images/login-logo.png">
			</div>
			<div style="float: left; margin-left: 10px;">
				<form id="loginForm" method="post" action="yueyogaPadAdmin/submitLogin.jhtml">
					<div>
						<label for="username">账　号：</label> <input class="easyui-textbox" type="text" id="username" name="username" data-options="required:true,validType:'length[6,16]'"
							style="width: 192px; height: 25px;" />
					</div>
					<div style="margin-top: 5px;">
						<label for="password">密　码：</label> <input class="easyui-textbox" type="password" id="password" name="password" data-options="required:true,validType:'length[6,16]'"
							style="width: 192px; height: 25px;" />
					</div>
					
					<div style="margin-top: 5px;">
						<label for="hall">会　馆：</label> <select id="hall" name="hall" class="easyui-combobox" data-options="width:192,height:25">
							<!--#var(List<Hall> halls)-->
					  		<!--#for(Hall hall:halls)-->
					  		<option value="${hall.code}">${hall.name}</option>
					  		<!--#end-->
						</select>
					</div>
				</form>
			</div>
		</div>
	</div>

	<div id="loginWindowButtonBar">
		<div style="float: left; margin-left: 5px; height: 24px; line-height: 24px; color: #888;">version: 1.0.0</div>
		<a id="loginBtn" href="javascript:void(0)" class="easyui-linkbutton" style="width: 60px;">登录</a> <a id="clearBtn" href="javascript:void(0)" class="easyui-linkbutton" style="width: 60px;">清空</a>
	</div>
</body>
</html>